<template>
  <Model
      :width="350"
      :show="show"
      title="审核"
      @confirm="confirm"
      @cancel="no"
      cancel-text="不通过"
      ok-text="通过"
      :footer="true"
      @noPass="cancel"
  >
  <a-card slot="card" :title="list.name+ '的报名情况'" style="width: 300px">
<!--    <a slot="extra" href="#">more</a>-->
    <p>学生id:{{list.studentId}}</p>
    <p>学生姓名:{{list.name}}</p>
    <p>是否对口:{{list.suitable}}</p>
    <p>是否被录取:{{list.success}}</p>
    <p>公司名称:{{list.company}}</p>
    <p>报名职务:{{list.job}}</p>
  </a-card>
  </Model>
</template>

<script>
import Model from "@/components/common/model/Model";
import {IP} from "@/assets/data/other"
export default {
  components:{ Model },
  props:{
    list:{
      type:Object,
      default:() => { return {} }
    },
    show:{
      type:Boolean,
      default() {
        return false;
      },
    }
  },
  name: "Card",
  data(){ return { IP }  },
  methods:{ confirm() {
      console.log(11);
      this.$emit("confirm", {
        check:1,
        id:this.list.id
      });
    },
    no(){ this.$emit("cancel"); },
    cancel() {
      this.$emit("nopass",{
            check:0,
            id:this.list.id
      });
    }, },
}
</script>

<style scoped>

</style>